package userInterface;

import javax.swing.*;
import java.awt.*;

public class UI extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	final static int WIDTH=1000;	
	final static int HEIGHT=750;
	final static int BOUNDS_X=300;
	final static int BOUNDS_Y=100;
	
	public static MainPanel panel;
	
	//constructor & main frame
	public UI() {
		super("Baze - Test");
			setBounds(BOUNDS_X,BOUNDS_Y,WIDTH,HEIGHT);
		    setVisible( true );
		    setResizable(false);
		    setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
		    
		    this.getContentPane().setPreferredSize(new Dimension(WIDTH, HEIGHT));
		    this.pack();

		    
		    panel = new MainPanel(WIDTH,HEIGHT);
		    add(panel);	
		    panel.requestFocus();
		    //panel.run();
	}
	
	
	
	//Main
	public static void main(String[] args) {		
		   new UI();
	}

}
